package com.eos.control.action.emp;

import com.eos.control.action.base.AbstractBaseAction;

public class DeleteFunctionAction extends AbstractBaseAction {
	private static final long serialVersionUID = -304118258023795704L;
	private Long functionId;
	
	public void setFunctionId(Long functionId) {
		this.functionId = functionId;
	}

	@Override
	public String execute() {
		 try {
			if(null == functionId || functionId.longValue() <=0){
				statusCode = "300";
				message = "参数错误, 删除节点失败!";
			}else{
				//TODO
				statusCode = "200";
				message = "删除节点成功!";
			}
		} catch (Exception e) {
			e.printStackTrace();
			statusCode = "300";
			message = "系统异常, 删除节点失败!";
		}
		return SUCCESS;
	}
}
